

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=&#34;auto&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/blog/img/favicon.png">
  <link rel="icon" href="/blog/img/favicon.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="">
  <meta name="author" content="John Doe">
  <meta name="keywords" content="">
  
  <title>DM商城后台管理 - Mike_Blog</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4.0.0/github-markdown.min.css" />
  <link  rel="stylesheet" href="/blog/lib/hint/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10.4.0/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
  



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/blog/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"dcmaomi.gitee.io","root":"/blog/","version":"1.8.9a","typing":{"enable":true,"typeSpeed":70,"cursorChar":"|","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":"#"},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null}}};
  </script>
  <script  src="/blog/js/utils.js" ></script>
  <script  src="/blog/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.4.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/blog/">&nbsp;<strong>Mike_Blog</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/about/">
                <i class="iconfont icon-user-fill"></i>
                关于我
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/links/">
                <i class="iconfont icon-link-fill"></i>
                友链
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" href="javascript:">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/blog/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="DM商城后台管理">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2020-09-10 14:00" pubdate>
        2020年9月10日 下午
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      528 字
    </span>
  

  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      6
       分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">DM商城后台管理</h1>
            
            <div class="markdown-body">
              <h1 id="DM商城-app-Dcpay-后台管理系统"><a href="#DM商城-app-Dcpay-后台管理系统" class="headerlink" title="DM商城 app Dcpay 后台管理系统"></a>DM商城 app Dcpay 后台管理系统</h1><p><a target="_blank" rel="noopener" href="https://github.com/asd494235908/TerMinal"><img src="https://img.shields.io/badge/version-1.0-brightgreen" srcset="/blog/img/loading.gif" lazyload></a><br><a target="_blank" rel="noopener" href="https://github.com/asd494235908/TerMinal"><img src="https://img.shields.io/github/stars/asd494235908/TerMinal.svg?style=social&label=Stars" srcset="/blog/img/loading.gif" lazyload alt="GitHub stars"></a><br><a target="_blank" rel="noopener" href="https://github.com/asd494235908/TerMinal"><img src="https://img.shields.io/github/forks/asd494235908/TerMinal.svg?style=social&label=Fork" srcset="/blog/img/loading.gif" lazyload alt="GitHub forks"></a></p>
<ul>
<li><a target="_blank" rel="noopener" href="https://gitee.com/dcmaomi/TerMinal">若图片显示不完整请跳转码云</a><h3 id="项目已部署，在线Demo"><a href="#项目已部署，在线Demo" class="headerlink" title="项目已部署，在线Demo"></a>项目已部署，在线Demo</h3></li>
<li>后台管理系统：<a target="_blank" rel="noopener" href="https://tm.dcmaomi.com/">https://tm.dcmaomi.com</a></li>
<li>Dcpay前台：<a target="_blank" rel="noopener" href="https://dcpay.dcmaomi.com/">https://dcpay.dcmaomi.com</a></li>
<li>Swagger接口文档：<a target="_blank" rel="noopener" href="https://www.dcmaomi.com:3000/api/Swagger">https://www.dcmaomi.com:3000/api/Swagger</a></li>
<li>项目综合项目：<a target="_blank" rel="noopener" href="https://www.dcmaomi.com/">https://www.dcmaomi.com</a><h3 id="v1-0更新日志"><a href="#v1-0更新日志" class="headerlink" title="v1.0更新日志"></a>v1.0更新日志</h3></li>
<li>上传商品</li>
<li>轮播图管理</li>
<li>板块管理</li>
<li>订单管理</li>
<li>用户管理</li>
<li>体统日志</li>
<li>上传图片</li>
<li>首页导航栏可后台配置</li>
<li>添加登录验证码<h3 id="功能模块图"><a href="#功能模块图" class="headerlink" title="功能模块图"></a>功能模块图</h3><img src="https://www.dcmaomi.com:3010/serverImage/20210305011146_16923.png" srcset="/blog/img/loading.gif" lazyload alt="首页"><br><img src="https://www.dcmaomi.com:3010/serverImage/20210305011146_11931.png" srcset="/blog/img/loading.gif" lazyload alt="上传商品"><br><img src="https://www.dcmaomi.com:3010/serverImage/20210305011146_13147.png" srcset="/blog/img/loading.gif" lazyload alt="查看商品"><br><img src="https://www.dcmaomi.com:3010/serverImage/20210305011146_16878.png" srcset="/blog/img/loading.gif" lazyload alt="系统日志"><h3 id="前端所用技术-后台"><a href="#前端所用技术-后台" class="headerlink" title="前端所用技术 后台"></a>前端所用技术 <a target="_blank" rel="noopener" href="https://github.com/asd494235908/TerMinal">后台</a></h3></li>
<li>后台页面<ul>
<li><a target="_blank" rel="noopener" href="https://cn.vuejs.org/">vue 2.x</a>：vue全家桶</li>
<li><a target="_blank" rel="noopener" href="http://echarts.apache.org/zh/">echarts</a>：图表插件</li>
<li><a target="_blank" rel="noopener" href="https://element.eleme.cn/#/zh-CN">Element</a>：Element-UI 组件库</li>
<li>第三方接口</li>
<li><a target="_blank" rel="noopener" href="https://cj.weather.com.cn/plugin/standard">中国天气网</a>：中国天气网 天气插件<h3 id="后端所用技术-后端-TerMinal-serve"><a href="#后端所用技术-后端-TerMinal-serve" class="headerlink" title="后端所用技术 后端 TerMinal-serve"></a>后端所用技术 <a target="_blank" rel="noopener" href="https://github.com/asd494235908/TerMinal-serve">后端 TerMinal-serve</a></h3></li>
</ul>
</li>
<li>主要<ul>
<li><a target="_blank" rel="noopener" href="https://nodejs.org/zh-cn/">Node Js</a>：Node.js</li>
<li><a target="_blank" rel="noopener" href="https://www.expressjs.com.cn/">express</a>：基于 Node.js 平台， Web 开发框架</li>
<li><a target="_blank" rel="noopener" href="https://www.mysql.com/">mysql</a>：基于 Node.js 平台， Web 开发框架</li>
<li><a target="_blank" rel="noopener" href="https://www.dcmaomi.com:3000/api/swagger/#/">Swagger2</a>：Api文档生成</li>
<li><a target="_blank" rel="noopener" href="https://www.npmjs.com/package/svg-captcha">svg-captcha</a>：登录验证码</li>
<li><a target="_blank" rel="noopener" href="https://www.npmjs.com/package/silly-datetime">silly-datetime</a>：时间格式化工具</li>
<li><a target="_blank" rel="noopener" href="https://www.npmjs.com/package/silly-datetime">qr-image</a>：链接生成二维码</li>
</ul>
</li>
<li>第三方接口<ul>
<li>高德地图城市列表API：获取全国省/市/县(区)三级列表 需要注册appid</li>
<li><a target="_blank" rel="noopener" href="http://www.tianqiapi.com/index/doc?version=day">天气api</a>：根据Ip地址获取城市天气（服务器主要用来获取城市）需要注册appid</li>
</ul>
</li>
<li>服务器<ul>
<li><a target="_blank" rel="noopener" href="https://www.bt.cn/">宝塔建站</a>：宝塔建站</li>
<li><a target="_blank" rel="noopener" href="http://httpd.apache.org/">Apache</a></li>
</ul>
</li>
</ul>
<h3 id="本地运行"><a href="#本地运行" class="headerlink" title="本地运行"></a>本地运行</h3><ul>
<li>前后端分离请先运行<a target="_blank" rel="noopener" href="https://github.com/asd494235908/TerMinal-serve">后端</a></li>
<li>node.js 版本(v12.18.3) </li>
<li>vue-cli 版本(@vue/cli 4.5.4)</li>
<li>下载zip直接解压或安装git后执行克隆命令 <code>https://github.com/asd494235908/TerMinal.git</code></li>
<li>右键进入PowerShell</li>
</ul>
<p>初始化项目</p>
<figure class="highlight cmake"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs cmake">npm <span class="hljs-keyword">install</span><br></code></pre></td></tr></table></figure>

<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs javascript"><span class="hljs-comment">// src/main.js 配置</span><br>axios.defaults.baseURL = <span class="hljs-string">&quot;http://您的本地服务器地址:端口号&quot;</span>  <span class="hljs-comment">//注意http与https</span><br></code></pre></td></tr></table></figure>
<p>运行项目</p>
<figure class="highlight routeros"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs routeros">npm <span class="hljs-builtin-name">run</span> serve<br></code></pre></td></tr></table></figure>

<h3 id="作者其他项目推荐"><a href="#作者其他项目推荐" class="headerlink" title="作者其他项目推荐"></a>作者其他项目推荐</h3><ul>
<li><p><a target="_blank" rel="noopener" href="https://www.dcmaomi.com/">DM商城：分布式电商购物商城</a><br><img src="https://www.dcmaomi.com:3010/serverImage/20210305011146_17326.png" srcset="/blog/img/loading.gif" lazyload title="前台首页"></p>
</li>
<li><p><a target="_blank" rel="noopener" href="https://github.com/asd494235908/DM-Mobile-terminal">DM微信小程序 APP前端 现已开源！</a></p>
<p>  <a target="_blank" rel="noopener" href="https://github.com/asd494235908/DM-Mobile-terminal"><img src="https://www.dcmaomi.com:3010/serverImage/20210305010710_12523.png" srcset="/blog/img/loading.gif" lazyload alt="WX20190924-234416@2x.png"></a></p>
</li>
<li><p><a target="_blank" rel="noopener" href="https://github.com/asd494235908/DcPay">DcPay个人收款支付系统</a></p>
<p>  <img src="https://www.dcmaomi.com:3010/serverImage/20210306141208_16064.png" srcset="/blog/img/loading.gif" lazyload></p>
</li>
</ul>
<h3 id="技术疑问交流"><a href="#技术疑问交流" class="headerlink" title="技术疑问交流"></a>技术疑问交流</h3><ul>
<li>免费交流群 <code>949139553</code> <a target="_blank" rel="noopener" href="https://qm.qq.com/cgi-bin/qm/qr?k=dtD6X04E3q7v3C8wuOnUENoW5S7hdGHO&jump_from=webapi"><img src="http://pub.idqqimg.com/wpa/images/group.png" srcset="/blog/img/loading.gif" lazyload></a></li>
<li>作者邮箱 <a href="mailto:&#97;&#x73;&#x64;&#52;&#x39;&#x34;&#x32;&#x33;&#53;&#x39;&#x30;&#x38;&#64;&#x71;&#113;&#46;&#99;&#111;&#109;">&#97;&#x73;&#x64;&#52;&#x39;&#x34;&#x32;&#x33;&#53;&#x39;&#x30;&#x38;&#64;&#x71;&#113;&#46;&#99;&#111;&#109;</a><h3 id="商用授权"><a href="#商用授权" class="headerlink" title="商用授权"></a>商用授权</h3></li>
<li>个人学习使用遵循GPL开源协议</li>
<li>商用需联系作者低价授权<h3 id="捐赠"><a href="#捐赠" class="headerlink" title="捐赠"></a><a target="_blank" rel="noopener" href="https://dcpay.dcmaomi.com/pay">捐赠</a></h3></li>
</ul>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/blog/categories/vue/">vue</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/blog/tags/%E9%A1%B9%E7%9B%AE/">项目</a>
                    
                      <a class="hover-with-bg" href="/blog/tags/%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/">后台管理</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/blog/2020/09/10/DM%E5%95%86%E5%9F%8E/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">在线商城项目</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/blog/2020/09/10/Dcpay%E6%94%AF%E4%BB%98%E7%B3%BB%E7%BB%9F/">
                        <span class="hidden-mobile">在线支付系统</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
              <!-- Comments -->
              <article class="comments" id="comments" lazyload>
                
                  
                
                

              </article>
            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
      <div class="col-lg-7 mx-auto nopadding-x-md">
        <div class="container custom mx-auto">
          <iframe frameborder="no" id="music" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=1397097038&auto=1&height=66"></iframe>
        </div>
      </div>
    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="#" target="_blank" rel="nofollow noopener"><span>Mike</span></a> <i class="iconfont icon-love"></i> <a href="#" target="_blank" rel="nofollow noopener"><span>Suansuan</span></a> <div class="powered-by"> <i class="fa fa-user-md"></i> </div> 
  </div>
  
  <div class="statistics">
    
    

    
      
        <!-- LeanCloud 统计PV -->
        <span id="leancloud-site-pv-container" style="display: none">
            总访问量 
            <span id="leancloud-site-pv"></span>
             次
          </span>
      
      
        <!-- LeanCloud 统计UV -->
        <span id="leancloud-site-uv-container" style="display: none">
            总访客数 
            <span id="leancloud-site-uv"></span>
             人
          </span>
      

    
  </div>


  
  <!-- 备案信息 -->
  <div class="beian">
    <span>
      <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
        蜀ICP备2020033541号
      </a>
    </span>
    
  </div>


  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" ></script>
<script  src="/blog/js/debouncer.js" ></script>
<script  src="/blog/js/events.js" ></script>
<script  src="/blog/js/plugins.js" ></script>

<!-- Plugins -->


  
    <script  src="/blog/js/img-lazyload.js" ></script>
  



  



  <script  src="https://cdn.jsdelivr.net/npm/tocbot@4.12.0/dist/tocbot.min.js" ></script>



  <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js" ></script>



  <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4.3.0/anchor.min.js" ></script>



  <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.6/dist/clipboard.min.js" ></script>






  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>



  <script  src="/blog/js/local-search.js" ></script>
  <script>
    (function () {
      var path = "/blog/local-search.xml";
      $('#local-search-input').on('click', function() {
        searchFunc(path, 'local-search-input', 'local-search-result');
      });
      $('#modalSearch').on('shown.bs.modal', function() {
        $('#local-search-input').focus();
      });
    })()
  </script>












  

  

  

  

  

  





<!-- 主题的启动项 保持在最底部 -->
<script  src="/blog/js/boot.js" ></script>


</body>
</html>
